using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace NeuroSpeech.Imap
{
	public class UIDImapRequest<T> : BaseImapRequest<T>
			where T : BaseImapResponse
	{
		public bool UID { get; set; }


		#region protected override void  WriteCommand(string cmdID, ImapClient client)
		protected override void WriteCommand(string cmdID, ImapClient client)
		{
			if (client.UID.HasValue)
			{
				UID = client.UID.Value;
			}
			if (UID)
			{
				client.WriteLine(cmdID + " uid " + this.ToString());
			}
			else
			{
				client.WriteLine(cmdID + " " + this.ToString());
			}
		}
		#endregion


	}
}
